package main

import "fmt"

type Student struct {
	name    string
	age     int
	courses []string
}

func main() {
	// 初始化方式4：使用new函数
	var p = new(Student) // 等价于&Student{}
	p.name = "zhangsan"
	p.age = 21
	fmt.Println(*p)
}
